<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head th:replace="_fragments :: head(~{::title})">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>博客首页</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <link rel="stylesheet" href="../../static/css/mecss.css" th:href="@{css/mecss.css}">
</head>

<body>

<!--导航-->
<div class="ui top fixed menu">
    <nav th:replace="_fragments :: menu(1)" class="ui attached segment m-padded-tb-mini">

        <div class="ui bottom indicating attached  progress" data-value="1" data-total="100" id="example4">
            <div class="bar" style="transition-duration: 300ms;"></div>
        </div>
        <div class="ui  secondary stackable menu">
            <h2 class="ui left teal header item">
                <div class="content">Meteor</div>
            </h2>
            <div class="item  h-item m-mobile-hide">
                <div class="ui item  category search">
                    <div class="ui  icon input">
                        <input class="prompt" type="text" placeholder="搜索文章" id="Search_for_articles">
                        <i class="search link icon" id="search_blog_btn"></i>
                    </div>
                    <div class="results"></div>
                </div>
            </div>
            <a href="#" class="active m-item item m-mobile-hide"><i class="mini home icon m-margin-biaoqian"></i>首页</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="mini idea icon m-margin-biaoqian"></i>分类</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="mini tags icon m-margin-biaoqian"></i>标签</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="mini clone icon m-margin-biaoqian"></i>归档</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="address card outline icon"></i>关于我</a>
        </div>
        <a href="#" class="ui menu toggle black icon button m-top-right m-mobile-show">
            <i class="sidebar icon"></i>
        </a>
    </nav>
</div>

















<!-- 	背景图 -->
<div class="h-box" id="indexBackground"
     style="margin-top: 70px;background: url('../../static/image/b1.jpg') center/cover no-repeat;">
    <div class="h-box-div" style="display: flex;justify-content: center;align-items: center;padding-top: 16%;">
        <center>
            <p id="p_title" class="animate__animated animate__slideInDown" style="font-size: 25px;color: #ffffff;">
                我们生活在阴沟里，但有人依然仰望星空。</p>
        </center>
    </div>
    <div style="display: flex;justify-content: center;align-items: center;padding-top: 21%;">
        <a href="javascript:;" class="h-text-font-size-plus" id="scroll_down_btn">
            <i class="angle down icon animate__animated animate__bounce"
               style="color: rgb(255, 255, 255); caret-color: rgb(255, 255, 255);"></i>
        </a>
    </div>
</div>


<!--中间内容-->
<div class="m-container m-padded-tb-large">
    <div class="ui container">
        <div class="ui stackable grid">
            <!-- 左边博客列表 -->
            <div class="eleven wide column">
                <!-- header -->
                <div class="ui top attached segment">
                    <div class="ui middle aligned two column grid">
                        <div class="column">
                            <h3 class="ui teal header">博客</h3>
                        </div>
                        <div class="right aligned column">
                            共<h2 th:text="${count}" class="ui orange header m-inline-block m-text-thin">14</h2>篇
                        </div>
                    </div>
                </div>
                <!-- 中间内容 -->
                <div th:each="blog:${blogs}" class="ui attached segment">
                    <div class="ui padded vertical segment m-padded-tb-large">
                        <div class="ui middle aligned mobile reversed stackable grid">
                            <div class="eleven wide column">
                                <a th:href="@{/blog/{id}(id=${blog.id})}" href="">
                                    <h3 th:text="${blog.title}" id="t" class="ui m-black header">这是一个文章标题！</h3>
                                </a>
                                <p th:text="|${blog.description}....|" class="m-text">
                                    进口的首个i和山东i挂机哦是第几个佛i看来三李开复弄完呢亲哦i杰佛i尽可能的监管覅u是大牛那是大苏打飒飒想吃千万不能就肯定是佛咨询公司当时说的都是在香港的
                                </p>
                                <div class="ui stackable grid">
                                    <div class="eleven wide column">
                                        <div class="ui mini horizontal link list">
                                            <div class="item">
                                                <img src="https://picsum.photos/10/10?image=1015" alt=""
                                                     class="ui avatar image">
                                                <div class="content"><a href="#" class="header">Meteor</a></div>
                                            </div>
                                            <div class="item">
                                                <i class="calendar icon"></i><span th:text="${blog.updateTime}"></span>
                                            </div>
                                            <div class="item">
                                                <i class="eye icon"></i><span th:text="${blog.views}"></span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class=" right aligned five wide column">
                                        <a th:text="${blog.name}" href="#" target="_blank"
                                           class="ui teal basic label m-padded-tiny m-text-thin">认知升级</a>
                                    </div>
                                </div>
                            </div>
                            <div class="five wide column">
                                <a th:href="@{/blog/{id}(id=${blog.id})}" href="#" target="_blank">
                                    <img th:src="${blog.firstPicture}" src="https://picsum.photos/200/120?image=1015"
                                         alt=""
                                         class="ui rounded image">
                                </a>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- 底部 -->
                <div class="ui bottom attached segment">
                    <div class="ui middle aligned two column grid">
                        <div class="column">
                            <a href="#" th:href="@{/{page}(page=${page.pageNum}-1)}" class="ui mini teal basic button">上一页</a>
                        </div>
                        <div class="right aligned column">
                            <a href="#" th:href="@{/{page}(page=${page.pageNum}+1)}" class="ui mini teal basic button">下一页</a>
                        </div>
                    </div>
                </div>

            </div>

            <!-- 右边的top -->
            <div class="five wide column">
                <!-- 分类 -->
                <div class="ui segments">
                    <div class="ui secondary segment">
                        <div class="ui two column grid">
                            <div class="column">
                                <i class="idea icon"></i>分类
                            </div>
                            <div class="right aligned column">
                                <a href="#" target="_blank">more <i class="angle double right icon"></i></a>
                            </div>
                        </div>
                    </div>
                    <div class="ui teal segment">
                        <div class="ui fluid vertical menu">
                            <a th:each="blog:${blogs}" href="#" class="item" th:text="${blog.name}">
                                学习日志
                                <div th:text="${blog.id}" class="ui teal basic left pointing label">1</div>
                            </a>
                        </div>
                    </div>
                </div>

                <!-- 标签 -->
                <div class="ui segments m-margin-top-large">
                    <div class="ui secondary segment">
                        <div class="ui two column grid">
                            <div class="column">
                                <i class="tags icon"></i>标签
                            </div>
                            <div class="right aligned column">
                                <a href="#" target="_blank">more <i class="angle double right icon"></i></a>
                            </div>
                        </div>
                        <div class="ui teal segment">
                            <a th:each="tag:${tags}" th:text="${tag.name}" href="#" target="_blank"
                               class="ui teal basic left pointing label m-margin-tb-tiny">
                                标签名字
                                <div th:text="${tag.id}" class="detail">3</div>
                            </a>
                        </div>
                    </div>
                </div>

                <!-- 最新推荐 -->
                <div class="ui segments m-margin-top-large">
                    <div class="ui secondary segment">
                        <i class="bookmark icon"></i>最新推荐
                    </div>
                    <div th:each="blog:${b}" class="ui segment">
                        <a th:text="${blog.title}" class="m-black m-text-thin" href="#" target="_blank">用户故事</a>
                    </div>
                </div>

                <!-- 二维码 -->
                <h4 class="ui horizontal divider header m-margin-top-large">扫码关注我</h4>
                <div class="ui centered card" style=width:11em;>
                    <img src="../../static/image/myvx.jpg" th:src="@{/image/myvx.jpg}" class="ui rounded">
                </div>
            </div>
        </div>
    </div>
</div>
<br>
<br>

<!-- 底部 -->
<footer th:replace="_fragments :: footer" class="ui inverted attached segment m-padded-tb-massive">
    <div class="ui center aligned container">
        <div class="ui inverted divided stackable grid">
            <div class="three wide column">
                <div class="ui inverted link list">
                    <div class="item">
                        <img src="../../static/image/myvx.jpg" th:src="@{/image/myvx.jpg}" class="ui rounded image" alt=""
                             style="width:100px">
                    </div>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced">最新博客</h4>
                <div class="ui inverted link list">
                    <a href="#" class="item">用户故事</a>
                    <a href="#" class="item">用户故事</a>
                    <a href="#" class="item">用户故事</a>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced">最新博客</h4>
                <div class="ui inverted link list">
                    <a href="#" class="item">用户故事</a>
                    <a href="#" class="item">用户故事</a>
                    <a href="#" class="item">用户故事</a>
                </div>
            </div>
            <div class="seven wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced">最新博客</h4>
                <p class="m-text-thin m-text-spaced m-opacity-mini">哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈</p>
            </div>
        </div>
        <div class="ui inverted section divider"></div>
        <p class="m-text-thin m-text-spaced m-opacity-tiny">Copright @ 2222 Meteor Designed By </p>
    </div>

</footer>

<!--script引入-->
<th:block th:replace="_fragments :: script">
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
</th:block>

<script>
    $(".menu.toggle").click(function () {
        $(".m-item").toggleClass("m-mobile-hide");
    });
</script>
</body>

</html>